﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="costExecutSumReport.aspx.cs" Inherits="ReportManagement_costExecutSumReport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="../Includes/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/index.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/MasterPage.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../CSS/MyCss.css" type="text/css" rel="stylesheet" />
    <link href="../css/Style.css" rel="stylesheet" type="text/css" />
    <title>部门费用执行汇总表</title>
    <style type="text/css">
        .style1
        {
            width: 15px;
        }
    </style>
</head>
<script src="../js/PageControl.js" type="text/javascript"></script>
<script src="../Includes/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../Includes/MyJScript.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
    //刷新页面
    function reload() {
        //        window.open('ApprovalFlow.aspx', 'main_right');
        parent.$("#main_right").attr("src", 'AuxiliaryManagement/BasicDataManagement/CostsSet/CostsList.aspx');
    }
    $(document).ready(function() {
    $("#btnAdd").click(function() {
            parent.PE_FrameTab.AddNew();
            //            window.open('ApprovalFlow.aspx', 'main_right');
            parent.$("#main_right").attr("src", 'AuxiliaryManagement/BasicDataManagement/Initialbudget/InitialBu.aspx');
            return false;
        });
        $("#btnDel").click(function() {
            if (!confirm("是否删除当前单据？"))
                return false;
        });
        $("a").click(function() {
            parent.PE_FrameTab.AddNew();
            //            window.open('ApprovalFlow.aspx?aprvlno=' + $(this).text(), 'main_right');
            parent.$("#main_right").attr("src", 'AuxiliaryManagement/BasicDataManagement/Initialbudget/InitialBu.aspx?sysno=' + $(this).text());
        });

    });
    function toDetail(busysno,deptno,costsno) {
        parent.PE_FrameTab.AddNew();
        //            window.open('ApprovalFlow.aspx', 'main_right');
        parent.$("#main_right").attr("src", 'ReportManagement/costExecutDetailReport.aspx?busysno='+busysno+'&deptno='+deptno+'&costsno='+costsno);
    }
</script>
<body>
    <form id="form1" runat="server">
     <div class="inputbuttondiv">
&nbsp;
<asp:Button ID="btnSec" runat="server" Text="查询" CssClass="inputbutton" 
             onclick="btnSec_Click"  />
</div>
    <div>
    
        <table class="WebPart" style="margin:0px 0px 0px 0px; width:800px">
            <tr>
                <td>预算部门:</td>
                <td>
                    <asp:DropDownList ID="ddlDept" runat="server" Width="130px" 
                        AppendDataBoundItems="true" 
                        >
                        <asp:ListItem Value="-1">-全部-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>费用项:</td>
                <td>
                    <asp:DropDownList ID="ddlCosts" runat="server" Width="130px" 
                        AppendDataBoundItems="true" 
                        >
                        <asp:ListItem Value="-1">-全部-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>年度</td>
                <td><asp:TextBox ID="txtUyear" runat="server" CssClass="inputtext" Width="60px"></asp:TextBox></td>
                <td>期间</td>
                <td class="style1">
                    <asp:DropDownList ID="ddlperiod" runat="server" Width="90px" 
                        AppendDataBoundItems="true">
                        <asp:ListItem Value="-1">-选择-</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            </table>
    
    </div>
    <div>
     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            onrowdatabound="GridView1_RowDataBound">
         <Columns>
             <asp:TemplateField HeaderText="id">
                    <ItemTemplate>
                        <%# Container.DataItemIndex+1 %>
                    </ItemTemplate>
                </asp:TemplateField>
             <asp:BoundField DataField="sysno" HeaderText="预算编码" />
             <asp:BoundField DataField="uyear" HeaderText="年度" />
             <asp:BoundField DataField="period" HeaderText="期间" />
             <asp:BoundField HeaderText="部门代码" DataField="deptno" />
             <asp:BoundField HeaderText="部门名称" DataField="deptname" />
             <asp:BoundField HeaderText="费用项代码" DataField="costsno" />
             <asp:BoundField HeaderText="费用项名称" DataField="costsname" />
             <asp:BoundField HeaderText="预算金额" DataField="bumoney" />
             <asp:BoundField HeaderText="实际发生额" DataField="applymoney" />
         </Columns>
     </asp:GridView>
    </div>
    </form>
</body>
</html>
